<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('login');
0
|| checktplrefresh('./template/qu_app/touch/member/login.htm', './template/qu_app/touch/common/seccheck.htm', 1537607345, '5', './data/template/7_5_touch_member_login.tpl.php', './template/qu_app', 'touch/member/login')
;?><?php include template('common/header'); $loginhash = 'L'.random(4);?><link rel="stylesheet" href="template/qu_app/touch/style/login/login.css?<?php echo VERHASH;?>" type="text/css">
<div class="ainuologinbg"></div>
<div class="ainuo_login_reg cl">

<!-- header start -->
<div class="login-header">
<div class="nav">
    	<a href="javascript:;" onclick="history.go(-1)" class="z"><i class="iconfont icon-back"></i></a>
        <span class="name"><?php echo $alang_login;?></span>
</div>
</div>


<!-- userinfo start -->
<div class="loginbox <?php if($_GET['infloat']) { ?>login_pop<?php } ?>">
<?php if($_GET['infloat']) { ?>
<h2 class="log_tit"><a href="javascript:;" onclick="hideWindow('login');window.location.reload();"><span class="icon_close y">X</span></a>登录</h2>
<?php } ?>
<form id="loginform" method="post" action="member.php?mod=logging&amp;action=login&amp;loginsubmit=yes&amp;loginhash=<?php echo $loginhash;?>&amp;mobile=2" onsubmit="<?php if($_G['setting']['pwdsafety']) { ?>pwmd5('password3_<?php echo $loginhash;?>');<?php } ?>" >
<input type="hidden" name="formhash" id="formhash" value='<?php echo FORMHASH;?>' />
<input type="hidden" name="referer" id="referer" value="<?php if(dreferer()) { echo dreferer(); } else { ?>forum.php?mobile=2<?php } ?>" />
<input type="hidden" name="fastloginfield" value="username">
<input type="hidden" name="cookietime" value="2592000">
<?php if($auth) { ?>
<input type="hidden" name="auth" value="<?php echo $auth;?>" />
<?php } ?>
<div class="login_from">
<ul>
<li><input type="text" value="" tabindex="1" size="30" autocomplete="off" value="" name="username" placeholder="请输入用户名" fwin="login"></li>
<li><input type="password" tabindex="2" size="30" value="" name="password" placeholder="密码" fwin="login"></li>
<li class="questionli">
<div class="login_select">
<span class="login-btn-inner">
<span class="login-btn-text">
<span class="span_question">安全提问(未设置请忽略)</span>
</span>
<span class="icon-arrow">&nbsp;</span>
</span>
<select id="questionid_<?php echo $loginhash;?>" name="questionid" class="sel_list">
<option value="0" selected="selected">安全提问(未设置请忽略)</option>
<option value="1">母亲的名字</option>
<option value="2">爷爷的名字</option>
<option value="3">父亲出生的城市</option>
<option value="4">您其中一位老师的名字</option>
<option value="5">您个人计算机的型号</option>
<option value="6">您最喜欢的餐馆名称</option>
<option value="7">驾驶执照最后四位数字</option>
</select>
</div>
</li>
<li class="bl_none answerli" style="display:none;"><input type="text" name="answer" id="answer_<?php echo $loginhash;?>" placeholder="答案"></li>
</ul>
<?php if($seccodecheck) { $sechash = 'S'.random(4);
$sectpl = !empty($sectpl) ? explode("<sec>", $sectpl) : array('<br />',': ','<br />','');	
$ran = random(5, 1);?><?php if($secqaacheck) { $message = '';
$question = make_secqaa();
$secqaa = lang('core', 'secqaa_tips').$question;?><?php } if($sectpl) { if($secqaacheck) { ?>
<p>
        验证问答: 
        <span class="xg2"><?php echo $secqaa;?></span>
<input name="secqaahash" type="hidden" value="<?php echo $sechash;?>" />
        <input name="secanswer" id="secqaaverify_<?php echo $sechash;?>" type="text" class="txt" />
        </p>
<?php } if($seccodecheck) { ?>
<div class="sec_code vm">
<input name="seccodehash" type="hidden" value="<?php echo $sechash;?>" />
<input type="text" class="txt px vm" style="ime-mode:disabled;width:115px;background:white;" autocomplete="off" value="" id="seccodeverify_<?php echo $sechash;?>" name="seccodeverify" placeholder="验证码" fwin="seccode">
        <img src="misc.php?mod=seccode&amp;update=<?php echo $ran;?>&amp;idhash=<?php echo $sechash;?>&amp;mobile=2" class="seccodeimg"/>
</div>
<?php } } ?>
<script type="text/javascript">
(function() {
$('.seccodeimg').on('click', function() {
$('#seccodeverify_<?php echo $sechash;?>').attr('value', '');
var tmprandom = 'S' + Math.floor(Math.random() * 1000);
$('.sechash').attr('value', tmprandom);
$(this).attr('src', 'misc.php?mod=seccode&update=<?php echo $ran;?>&idhash='+ tmprandom +'&mobile=2');
});
})();
</script>


<?php } ?>
</div>
<div class="ainuo_login cl">
    	<div class="btn_login"><button tabindex="3" value="true" class="btn_login ainuologin"><?php echo $alang_fastlogin;?></button></div>
        <?php if($_G['setting']['regstatus']) { ?>
        	<div class="reg_link cl"><a href="member.php?mod=<?php echo $_G['setting']['regname'];?>"><?php echo $alang_fastregister1;?></a></div>
        <?php } ?>
    </div>
</form>

</div>
<?php if($configData['login_qq'] || $configData['login_weixin']) { ?>
<div class="ainuo_other_method cl">
    	<div class="login_title cl">
            <div class="ub_fl"></div>
            <div class="atext"><?php echo $alang_otherlogin;?></div>
            <div class="ub_fr"></div>
        </div>
        <div class="login_con cl">
    	<?php if($configData['login_qq']) { ?><a href="<?php echo $configData['login_qq'];?>" class="qqlogin external"><i class="iconfont icon-qq"></i></a><?php } ?>
        <?php if($configData['login_weixin']) { ?><a href="<?php echo $configData['login_weixin'];?>" class="weixinlogin external"><i class="iconfont icon-weixin"></i></a><?php } ?>
        <?php if($configData['login_weibo']) { ?><a href="<?php echo $configData['login_weibo'];?>" class="phonelogin external"><i class="iconfont icon-mobilefill"></i></a><?php } ?>
        </div>
</div>
    <?php } ?>

<div class="login_hook" style="display:none"><?php if(!empty($_G['setting']['pluginhooks']['logging_bottom_mobile'])) echo $_G['setting']['pluginhooks']['logging_bottom_mobile'];?></div>



<?php if($_G['setting']['pwdsafety']) { ?>
<script src="<?php echo $_G['setting']['jspath'];?>md5.js?<?php echo VERHASH;?>" type="text/javascript" reload="1"></script>
<?php } updatesession();?><script type="text/javascript">
(function() {
$(document).on('change', '.sel_list', function() {
var obj = $(this);
$('.span_question').text(obj.find('option:selected').text());
if(obj.val() == 0) {
$('.answerli').css('display', 'none');
$('.questionli').addClass('bl_none');
} else {
$('.answerli').css('display', 'block');
$('.questionli').removeClass('bl_none');
}
});
 })();
</script>
<script>
$(document).on('click', '.ainuologin', function() {
$('body').append('<div class="ainuooverlay"><div class="loadings_icon"><i class="toast-loading toast-icon_toast"></i></div></div>');
var obj = $(this);
var formobj = $(this.form);
$.ajax({
type:'POST',
url:formobj.attr('action') + '&handlekey='+ formobj.attr('id') +'&inajax=1',
data:formobj.serialize(),
dataType:'xml'
})
.success(function(s) {
if(s.lastChild.firstChild.nodeValue.indexOf("<?php echo $alang_back1;?>") >= 0){
$('.ainuooverlay').remove();
showMessage('<?php echo $alang_back2;?>');
evalscript(s.lastChild.firstChild.nodeValue);
}else if(s.lastChild.firstChild.nodeValue.indexOf("<?php echo $alang_logfaile;?>") >= 0){
$('.ainuooverlay').remove();
showMessage('<?php echo $alang_logfaile2;?>');
}else if(s.lastChild.firstChild.nodeValue.indexOf("<?php echo $alang_emptymima;?>") >= 0){
$('.ainuooverlay').remove();
showMessage('<?php echo $alang_emptymima2;?>');
}else{
$('.ainuooverlay').remove();
popup.open(s.lastChild.firstChild.nodeValue);
evalscript(s.lastChild.firstChild.nodeValue);
}
})
.error(function() {
window.location.href = obj.attr('href');
$('.ainuooverlay').remove();
});
return false;
});
</script>
</div><?php include template('common/footer'); ?>